<template>
  <div :class="{ box: true, box1: box1True }">
    <div id="loginSide">
      <LoginForm></LoginForm>
    </div>
    <div id="registerSide">
      <RegisterForm></RegisterForm>
    </div>
  </div>
</template>
<script>
"use strict";
import axios from "axios";
import LoginForm from './form/LoginForm.vue'
import RegisterForm from './form/RegisterForm'
export default {
  name: "Rotate",
  components:{ LoginForm , RegisterForm },
  data() {
    return {
      box1True: false,
      
    };
  },
  created() {

  },
  methods: {
    loginRotate: function () {
      this.box1True = !this.box1True;
    },
    registerRotate: function () {
      this.box1True = !this.box1True;
    },
    
  },
};
</script>

<style>
.box {
  transform-style: preserve-3d;
  transition: all 1s;
}
.box1 {
  transform: rotateY(-90deg);
}
#loginSide,
#registerSide {
  position: absolute;
  width: 100%;
  height: 100%;
}
#registerSide {
  transform: rotateY(90deg);
}
#loginSide {
  z-index: 1;
}
#registerButton,
#loginButton {
  color: #f9f9f9;
  font: 20px/30px "Microsoft Yahei";
  background-color: #f38d30;
  transition: all 1s;
  margin-top: 10px;
}
#registerButton:hover,
#loginButton:hover {
  box-shadow: 5px 5px 20px 5px rgba(0, 0, 0, 0.3);
}
.rotateButton {
  text-decoration: underline;
  color: #005980;
}
.rotateButton:hover {
  color: rgb(0, 111, 181);
}
#clickMeRegister {
  margin-top: 14px;
  float: right;
  text-align: center;
}
#loginFont {
  float: left;
  font: bold 24px/1.33em "Microsoft Yahei";
  color: #40485b;
}
.checkUnit {
  width: 250px !important;
  display: inline !important;
  float: left !important;
}
.rememberMe {
  height: 40px;
  display: block;
  text-align: left;
  float: left;
}
.boxUnit {
  height: 80px;
  display: block;
}
.input_content {
  font: 20px/30px "Microsoft Yahei";
  width: 378px;
  padding: 0 0 0 12px;
  background-color: rgb(255, 248, 197);
  border: 1px solid #dfe3e9;
  border-radius: 10px;
  height: 50px;
  vertical-align: middle;
}
img {
  display: inline;
  margin: 0;
  vertical-align: top;
  padding: 0;
  margin-left: 3px;
  float: right;
}
</style>